package org.omg.GIOP;

//
// Helper class for : LocateRequestHeader_1_1
//
// @author OpenORB Compiler
//
public class LocateRequestHeader_1_1Helper
{

	//
	// Insert LocateRequestHeader_1_1 into an any
	// @param	a an any
	// @param	t LocateRequestHeader_1_1 value
	//
	public static void insert( org.omg.CORBA.Any a, org.omg.GIOP.LocateRequestHeader_1_0 t )
	{
		a.insert_Streamable( new org.omg.GIOP.LocateRequestHeader_1_0Holder( t ));
	}

	//
	// Extract LocateRequestHeader_1_1 from an any
	// @param	a an any
	// @return the extracted LocateRequestHeader_1_1 value
	//
	public static org.omg.GIOP.LocateRequestHeader_1_0 extract( org.omg.CORBA.Any a )
	{

		return read(a.create_input_stream());
	}

	//
	// Internal TypeCode value
	//
	private static org.omg.CORBA.TypeCode _tc = null;
	private static boolean _working = false;

	//
	// Return the LocateRequestHeader_1_1 TypeCode
	// @return a TypeCode
	//
	public static org.omg.CORBA.TypeCode type()
	{
		if ( _tc == null ) {
			synchronized(org.omg.CORBA.TypeCode.class) {
				if ( _tc != null )
					return _tc;
				if ( _working )
					return org.omg.CORBA.ORB.init().create_recursive_tc( id() );
				_working = true;
			org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
			_tc = orb.create_alias_tc(id(),"LocateRequestHeader_1_1",org.omg.GIOP.LocateRequestHeader_1_0Helper.type());
				_working = false;
			}
		}
		return _tc;
	}

	//
	// Return the LocateRequestHeader_1_1 IDL ID
	// @return an ID
	//
	public static String id()
	{
		return _id;
	}

	private final static String _id = "IDL:omg.org/GIOP/LocateRequestHeader_1_1:1.0";

	//
	// Read LocateRequestHeader_1_1 from a marshalled stream
	// @param	istream the input stream
	// @return the readed LocateRequestHeader_1_1 value
	//
	public static org.omg.GIOP.LocateRequestHeader_1_0 read( org.omg.CORBA.portable.InputStream istream )
	{
		return org.omg.GIOP.LocateRequestHeader_1_0Helper.read( istream );
	}

	//
	// Write LocateRequestHeader_1_1 into a marshalled stream
	// @param	ostream the output stream
	// @param	value LocateRequestHeader_1_1 value
	//
	public static void write( org.omg.CORBA.portable.OutputStream ostream, org.omg.GIOP.LocateRequestHeader_1_0 value )
	{
		org.omg.GIOP.LocateRequestHeader_1_0Helper.write( ostream, value );
	}

}
